 #define  _CRT_SECURE_NO_WARNINGS 1

#include"RBtree.h"
#include<time.h>
#include<vector>
int main()
{
	srand(time(0));

	int n = 10000;
	vector<int>v;
	v.resize(n);
	for (int i = 0; i < n; i++)
	{
		v[i] = rand() + i;
	}

	RBtree<int,int> r1;
	for (auto&e:v)
	{
		r1.insert(make_pair(e,e));
		cout << "insert:" << e << "->" << r1.IsBalance() << endl;
	}

	//r1.midlle();
	return 0;



}